/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "设备基础故障维护表",TableName = "equipmentfaultmaintenanceview",DBServer = "SmesDbContext")]
    public partial class equipmentfaultmaintenanceview:SmesEntity
    {
        /// <summary>
       ///故障维护唯一标识
       /// </summary>
       [Key]
       [Display(Name ="故障维护唯一标识")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int FaultID { get; set; }

       /// <summary>
       ///设备编码
       /// </summary>
       [Display(Name ="设备编码")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string SerialNo { get; set; }

       /// <summary>
       ///设备名称
       /// </summary>
       [Display(Name ="设备名称")]
       [MaxLength(128)]
       [Column(TypeName="nvarchar(128)")]
       [Editable(true)]
       public string EquipmentName { get; set; }

       /// <summary>
       ///设备ID（外键关联设备表）
       /// </summary>
       [Display(Name ="设备ID（外键关联设备表）")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string EquipmentID { get; set; }

       /// <summary>
       ///采集字段名称
       /// </summary>
       [Display(Name ="采集字段名称")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string FieldName { get; set; }

       /// <summary>
       ///字段标识
       /// </summary>
       [Display(Name ="字段标识")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Tag { get; set; }

       /// <summary>
       ///二进制采集值
       /// </summary>
       [Display(Name ="二进制采集值")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int FieldValue { get; set; }

       /// <summary>
       ///故障原因
       /// </summary>
       [Display(Name ="故障原因")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string FaultReason { get; set; }

       /// <summary>
       ///故障等级
       /// </summary>
       [Display(Name ="故障等级")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Level { get; set; }

       /// <summary>
       ///故障解决措施
       /// </summary>
       [Display(Name ="故障解决措施")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string Resolution { get; set; }

       /// <summary>
       ///更新时间
       /// </summary>
       [Display(Name ="更新时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? UpdateTime { get; set; }

       /// <summary>
       ///更新用户
       /// </summary>
       [Display(Name ="更新用户")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string OperatorID { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string Memo { get; set; }

       
    }
}